package cn.edu360.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

//Bike这个类，以后跟MongoDB中的bikes collection关联上了
@Document(collection="bikes")
public class Bike {
	
	//主键，id对应的是mongodb中的_id
	@Id
	private String id;
	private double longtitude;
	private double latitude;
	
	//建立索引
	@Indexed
	private long bikeNo;
	private int status;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public double getLongtitude() {
		return longtitude;
	}
	public void setLongtitude(double longtitude) {
		this.longtitude = longtitude;
	}
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public long getBikeNo() {
		return bikeNo;
	}
	public void setBikeNo(long bikeNo) {
		this.bikeNo = bikeNo;
	}
	
	
}
